using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter33
{
	/// <summary>
	/// Example02: A Purely Inductive AC Circuit
	/// In a purely inductive AC circuit (see Fig. 33.6), 
	/// L = 25.0 mH and the rms voltage is 150 V. Calculate the 
	/// inductive reactance and rms current in the circuit if 
	/// the frequency is 60.0 Hz.
	/// </summary>
	public class Example02
	{
		public Example02()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Frequency f = new L.Frequency();
		    f.Hz = 60.0;
			L.ElectricPotentialDifference V 
				= new L.ElectricPotentialDifference();
			V.V = 150.0;
			L.Inductance LL = new L.Inductance();
			LL.H = 25.0E-3;
			double z = LL.Reactance(f);
			result+=Convert.ToString(z);
			L.ElectricCurrent I = new L.ElectricCurrent();
			I.A = V.V/z;
			result+="    "+Convert.ToString(I.A);
		}
	}
}
